//
//  BMAccountManager.h
//  特种车调度
//
//  Created by 陈宇 on 15/9/2.
//
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "User.h"

extern NSString *const kLocationChangedNotification;

@interface BMAccountManager : NSObject

kSingletonH

@property (nonatomic, assign, readonly, getter=isLogin) BOOL login;

@property (nonatomic, strong) User *user;

- (void)logout;

/**
 *  重新获取用户最新信息;
 */
- (void)updateInfo;

@property (nonatomic, assign, readonly) CLLocationCoordinate2D location;

///更新用户当前位置信息
- (void)updateLocation;

///转换GPS坐标为百度坐标
- (CLLocationCoordinate2D)convertToBaiduCood:(CLLocationCoordinate2D)origin;

@end
